<template>
  <UploadSiteFile
    :limit="record.options.limit"
    :multiple="record.options.multiple"
    :disabled="record.options.disabled"
    :default-value="value"
    @change="onChange"
  />
</template>
<script>
export default {
  name: "UploadFile",
  components: {
    UploadSiteFile: () => import("xqjr-plugin-common")
  },
  props: {
    record: {
      type: Object,
      default: () => {}
    },
    value: {
      type: String,
      default: ""
    }
  },

  methods: {
    onChange(val) {
      this.$emit("input", val);
      this.$emit("change", val);
    }
  }
};
</script>
<style lang="scss"></style>
